
package com.idealighter.game.gm.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.gm.manager.GmCmdMgrScript;
import com.idealighter.game.gm.message.ReqGmMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;


@ReqMsgHandler(400101)
public class ReqGmHandler implements ReqMessageHandler {
  @Inject
  private GmCmdMgrScript gmCmdMgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqGmMsg msg = (ReqGmMsg) message;
    gmCmdMgr.execute(player, msg.getCmd());

    return null;
  }
}
